#include<iostream>
#include<thread>
#include<unistd.h>
using namespace std;
void threadobj()
{
    cout<<"thread one begin"<<endl;
    sleep(10);
    cout<<"thread one end"<<endl;
}
int main()
{
    cout<<"main begin"<<endl;
    thread one(threadobj);
    // one.join();
    one.detach();
    cout<<"main end"<<endl;
    return 0;
}